]> dgit.raspbian.org Git - gnome-shell.git/commit
st: Check for ClutterImage when creating shadow pipelines
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 29 Jan 2019 14:22:26 +0000 (12:22 -0200)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 29 Jan 2019 18:38:04 +0000 (16:38 -0200)
commit8665045326ab475bc63dd6553ee3c38bea8ad824
tree05f17038af38190752afa9c02f912fb4969b4505
parenta7bb8ee6398b9b55a80e7fa541f4950603149178
st: Check for ClutterImage when creating shadow pipelines

_st_create_shadow_pipeline_from_actor creates shadow pipelines
from actors. This function special-cases ClutterTexture as a
small performance improvement, since we can have access to the
CoglTexture easily with it. However, recent commits removed all
usage of ClutterTexture from GNOME Shell, rendering this optimization
useless. Instead, actors now may have a ClutterImage set as
their content, that can be used instead.

Replace the check for ClutterTexture with a check for ClutterImage,
and use the texture of the image when it is available.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/371
src/st/st-private.c